Welcome Guest

Aptitude And Technical Questions for GLOBAL LOGIC

Q. No. :1
Question :If out of X bulbs y bulbs are broken;The % of non broken bulbs
A :
(x+y) / x*100
B :
(x-y) / x*100
C :
(x-y) / y*100
D :
x/ y*100
Answer: B
Q. No. :2
Question : All the pages of a book starting from page 1 are summed. One of the pages has been added twice, and the total thus obtained is 1000. Which is the page that has been added twice ?
A :
10
B :
12
C :
14
D :
none of these
Answer: A
Solution
Q. No. :3
Question :What is the least value of x for which expression x3 – 7x2 + 11x – 5 gives positive quantity?
A :
4
B :
5
C :
8
D :
none of these
Answer: D
Q. No. :4
Question : In a class, except 18 all are above 50 years.
15 are below 50 years of age. How many people are there?
A :
30
B :
33
C :
36
D :
none of these.

Answer: D
Q. No. :5
Question :Train X starts from A towards B which is 180 Kms apart. At same time, train Y start from B towards A. Train X travels at speed of 70 kmph and Y travels at 50 kmph. While X does not stop anywhere on the way, the train Y stops at station C in between at 60km from B for 15 minutes. At what distance from A they would meet
A :
115
B :
112
C :
129
D :
none of these
Answer: B
Solution
Q. No. :6
Question :What is the smallest number by which 2880 must be divided in order to make it into a
perfect square ?
A :
3
B :
4
C :
5
D :
6
Answer: C
Q. No. :7
Question :At present, the ratio between the ages of Arun and Deepak is 4 : 3. After 6 years, Arun's age will be 26 years. What is the age of Deepak at present ?
A :
12 years
B :
15 years
C :
19 and half
D :
21 years
Answer: B
Solution
Q. No. :8
Question : The sum of three consecutive numbers is 132. Find the square of the largest number.
A :
2026

B :
640

C :
900

D :
2025
Answer: D
Q. No. :9
Question :A man ate 100 bananas in five days, each day eating 6 more than the previous day. How many bananas did he eat on the first day?
A :
6
B :
9
C :
8
D :
7
Answer: C
Q. No. :10
Question :A rectangular field is to be fenced on three sides leaving a side of 20 feet uncovered. If the area of the field is 680 sq. feet, how many feet of fencing will be required?
A :
34
B :
40
C :
68
D :
88
Answer: D
Solution
Q. No. :11
Question :Three pipes, A, B, & C are attached to a tank. A & B can fill it in 20 & 30 minutes respectively while C can empty it in 15 minutes. If A, B & C are kept open successively for 1 minute each, how soon will the tank be filled?
A :
167 minutes
B :
165 minutes
C :
162 minutes
D :
164 minutes
Answer: A
Q. No. :12
Question :X's father's wife's father's granddaughter uncle will be related to X as
A :
Son
B :
Nephew
C :
Uncle
D :
Grandfather
Answer: C
Q. No. :13
Question :A towel, when bleached, was found to have lost 20% of its length and 10% of its breadth. The percentage of decrease in area is:
A :
10%
B :
10.08%
C :
20%
D :
28%
Answer: D
Solution
Q. No. :14
Question : Father's age is five times his son's age.
Four years back father was 9 times older than his son. Find their present ages
A :
30yrs, 6yrs
B :
25yrs, 5yrs

C :
40yrs, 8yrs

D :
none of these
Answer: C
Q. No. :15
Question : A car travels a certain distance taking 7 hrs in forward journey, during the return journey increased speed by 12km/hr takes the times 5 hrs.What is the distance traveled
A :
210 kms
B :
420 kms
C :
30 kms
D :
none of these
Answer: B
Solution
Q. No. :16
Question :A monkey starts climbing up a tree 20ft. tall. Each hour, it hops 3ft. and slips back 2ft. How much time would it take the monkey to reach the top?
A :
15
B :
20
C :
21
D :
18
Answer: D
Q. No. :17
Question : A / B = C; C > D then
A :
A is always greater than D
B :
C is always greater than D
C :
B is always less than D
D :
None of these
Answer: B
Q. No. :18
Question :A trader mixes 26 kg of rice at Rs. 20 per kg with 30 kg of rice of other variety at Rs. 36 per kg and sells the mixture at Rs. 30 per kg. His profit percent is:
A :
No profit, no loss
B :
5%
C :
8%
D :
10%
Answer: B
Solution
Q. No. :19
Question :Fresh grapes contain 90% water, dry grapes contain 20% water. From 20 Kg fresh grapes, How many Kg of dry grape can be obtain ?
A :
2.4
B :
2.2
C :
2.5
D :
none of these
Answer: C
Q. No. :20
Question :x, y, z are distinct integers such as x is positive, y is lesser than x and z is more than x and y. Then which of the following is true ?
A :
x y³
B :
x-y > 0
C :
xyz>0
D :
none of these
Answer: B
Q. No. :21
Question :Find the output for the following C program
 int i =10 main()
 {
int i =20,n;
for(n=0;n<=i;)
{
int i=10; i++;
}
printf("%d", i);
}

A :
10
B :
garbage value
C :
20
D :
compilation error
Answer: C
Q. No. :22
Question :A function q that accepts a pointer to a character as argument and returns a pointer to an array of integer can be declared as
A :
int(*q(char*))[]
B :
int *q(char *)[]
C :
int (*q)(char *)[]
D :
none of the above
Answer: A
Q. No. :23
Question :Consider the declaration

int a=5,*b=&a;
The statement
printf("%D",a*b);

prints
A :
25
B :
garbage
C :
5 x address of b
D :
an error message
Answer: D
Solution
Q. No. :24
Question :A possible output of the following program fragment
static char wer[ ][5]={"harmot","merli","axari"};
printf("%d%d%d",wer,wer[0],&wer[0][0]);
is
A :
262164 262164 262164
B :
262164 262165 262166
C :
262164 262165 262165
D :
262164 262164 262165
Answer: A
Q. No. :25
Question :The for loop
for(i=0;i<10;++i)
printf("%d",i&1);

prints
A :
0101010101
B :
0111111111
C :
0000000000
D :
1111111111
Answer: A
Q. No. :26
Question :What will be the result of the following program ?
char *gxxx()
{static char xxx[1024];
return xxx;
}

main()
{char *g="string";
strcpy(gxxx(),g);
g = gxxx();
strcpy(g,"oldstring");
printf("The string is : %s",gxxx());
}
A :
The string is : string

B :
The string is :Oldstring

C :
Run time error/Core dump

D :
Syntax error during compilation

Answer: B
Q. No. :27
Question :
main()
{
static int x[]={1,2,3,4,5,6,7,8};
int i;
for(i=2;i<6;++i)
x[x[i]]=x[i];
for(i=0;i<8;++i)
printf("%d",x[i]);
}
A :
1 2 3 3 4 4 7 8
B :
1 2 3 4 5 6 7 8
C :
8 7 6 5 4 3 2 1
D :
1 2 3 5 4 6 7 8
Answer: A
Q. No. :28
Question :Consider the following program segment
i=6720; j=4;
while((i%j)==0)
{
i=i/j;
j=j+1;
}

on termination j will have the value
A :
4
B :
8
C :
9
D :
6720
Answer: C
Q. No. :29
Question :The result of evaluating prefix expression */b+-dacd, where a = 3, b = 6, c = 1, d = 5 is
A :
0
B :
5
C :
10
D :
15
Answer: C
Solution
Q. No. :30
Question :In an array representation of binary tree the right child of root will be at location of
A :
2
B :
5
C :
3
D :
0
Answer: C
Q. No. :31
Question :3. Which of the following data structures are indexed structures?
A :
linear arrays
B :
linked lists
C :
both of above
D :
none of above
Answer: A
Q. No. :32
Question :In linked lists there are no NULL links in:
A :
Sin­gle linked list
B :
Lin­ear dou­bly linked list
C :
cir­cu­lar linked list
D :
None of the above
Answer: C
Q. No. :33
Question : The total number of comparisons in a bubble sort is
A :
O(n log n)
B :
O(2n)
C :
O(n2)
D :
None of the above
Answer: C
Q. No. :34
Question :Time complexity of AVL tree is
A :
N*N

B :
log(N)
C :
N*log(N)

D :
N
Answer: B
Q. No. :35
Question : The worst case successful search time for sequential search on n items is
A :
n
B :
(n-1)/2
C :
(n+1)/2
D :
log(n)+1
Answer: A
Q. No. :36
Question :A shift register can be used for
A :
Parallel to serial conversion
B :
Serial to parallel conversion
C :
Digital delay line
D :
All the above
Answer: D
Q. No. :37
Question :The recurrence relation T(1)=2
T(n)=3T(n/4)+n
has solution T(n) equal to
A :
O(n)
B :
O(logn)
C :
O(n raised to power 3/4)
D :
npne of the above
Answer: A
Q. No. :38
Question :In an absolute loading scheme, which loader function is accomplished by assembler


A :
Reallocation
B :
Allocation
C :
Linking
D :
Both (a) and (b)
Answer: D
Q. No. :39
Question :S --> AB|AS
A --> a|aA
B --> b

What is the grammer accepted by the above?
A :
aa*b
B :
a*b
C :
a*b*
D :
(ab)*
Answer: A
Q. No. :40
Question :Which of the following sorting algorithm has the worst time complexity of nlog(n)
A :
Heap Sort
B :
Quick Sort
C :
Insertion Sort
D :
Selection Sort
Answer: A
Q. No. :41
Question :Floating point has different formats on two different machines. This modifications are taken care by which layer?
A :
DLL

B :
Network layer
C :
Transport layer

D :
Presentation
Answer: D
Q. No. :42
Question :The merging two sorted lists of size m and n into a sorted lists of size m+n , we require comparisions of
A :
O(m)
B :
O(n)
C :
O(m+n)
D :
O(log(m)+log(n))
Answer: C
Q. No. :43
Question :The average successful search time for sequential search on n items is
A :
n/2
B :
(n-1)/2
C :
(n+1)/2
D :
log(n)+1
Answer: C
Q. No. :44
Question :A sorting algorithm which can prove to be a best time algorithm in one case and a worst time algorithm in worst case is
A :
Quick Sort
B :
Heap Sort
C :
Merge Sort
D :
Insert Sort
Answer: A
Q. No. :45
Question :Given two sorted list of size m and respectively. The number of comparisons needed in the worst case by merge sort will be
A :
mXn
B :
maximum of m and n
C :
minimum of m and n
D :
m+n-1
Answer: D
Q. No. :46
Question :Which of the following cannot be declared static?
A :
Class
B :
inline function
C :
Functions
D :
Member variables
Answer: A
Q. No. :47
Question :Choose the correct statement regarding inline functions
A :
It speeds up execution
B :
It slows down the execution
C :
It increases the code size
D :
It decreases the code size
Answer: C
Q. No. :48
Question :Which of the following parameter passing mechanism is/are supported by C++,but not by C?
A :
Pass by value
B :
Pass by reference
C :
Pass by value result
D :
All of the above
Answer: B